<?	$field_name = $_GET['fieldname'];	if($field_name == "displayName")		$field_name = "username";	$content = "\"". $_GET['content'] . "\"";	$user_id = $_GET['user_id'];	//echo $field_name . "=".$content;username="sub7" password="subsubsub"	$dbh = new PDO('mysql:host=localhost;dbname=sbdb', 'root', 'winwinwin');	$dbh->exec("SET NAMES UTF8");	$dbh->exec("UPDATE tblusers set " . $field_name ." = " . $content. " where user_id =".$user_id);		$dbh->exec("INSERT INTO tblactivity_updatestatus VALUES (NULL,".$user_id.",".$content.",\"  ".date("Y/m/d H:i:s")  ."\" ) ");		// get a last id	$rec = $dbh->lastInsertId("tblactivity_updatestatus");	// get a type	$type = 0;	if($field_name == "username")		$type = 4;	else		$type = 3;	$dbh->exec("INSERT INTO tblactivity_list VALUES (NULL,".$type."," . $user_id .",".$rec.",-1)");		foreach($dbh->query('select '.$field_name.' from tblusers where user_id='.$user_id ) as $row)	{		echo $row[$field_name];	}	?>